

var w = floaty.window(
    <vertical alpha="0.6">
        <button id="up" text="上" />
        <button id="down" text="下" />
    </vertical>
);


w.setSize(240, 440);
// w.setTouchable(true);
// w.setAdjustEnabled(true);
w.setPosition(1200, 1500);
w.exitOnClose();
setInterval(() => { }, 1000);



w.up.click(function () {
    //   scrollUp();
    var thread = threads.start(function(){
        swipe(10, 100, 10, 2780, 200);
        log('上');
    });
    // thread.interrupt();
  
});


w.down.click(function () {
    // scrollDown();
    var thread = threads.start(function(){
        swipe(1, 2780, 10, 100, 200);
        log('下');
    });
    // thread.interrupt();
   
});
